function [ ] = mx_eyelink_wait_for_mode_ready( )
%MX_EYELINK_WAIT_FOR_MODE_READY After a mode-change command is given to the EyeLink
% tracker, an additional 5 to 30 milliseconds may be needed to complete mode setup. 
% Call this function after mode change functions.
%
% Remarks:
% If it does not return 0, assume a tracker error has occurred.
% Parameters:
% maxwait 	Maximum milliseconds to wait for the mode to change.
% Returns:
% 0 if mode switching is done, else still waiting.
%
%----------------------------------------------------------------------------
% Copyright Eduardo Aponte 2013
% aponteeduardo@gmail.com